<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>创客英雄</title>
<script src="http://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="__TMPL__Portal/assets/css/ckyx.css" rel="stylesheet">
<script src="__TMPL__Portal/assets/js/ckyx.min.js"></script>
<link href="__TMPL__Portal/assets/css/main.css" rel="stylesheet">
</head>

<body>
<!--header-->
<tc_include file="Portal:head" />
<div class="nav_box">
    <div class="container">
        <div class="row">
            <a class="logo col-md-2" href="index.html">
                <img src="__TMPL__Portal/assets/images/logo.png">
            </a>
            <tc_include file="Portal:nav" />
        </div>
    </div>
</div>

<!--banner_2-->
<div class="container banner_2">
	<img src="__TMPL__Portal/assets/images/zsxc.png">
</div>

<!--main3-->
<div class="container main3_box">
	<div class="ysbkbt">
        <div>比赛规则</div>
    </div>
	<div class="main1_left main3">
		<div class="twbk">        	
            <div class="zlxzt">
                <php>
                    $count=M('doc')->count();
                    $p=getpage($count,18);
                    $docs=M('doc')->order('create_at desc')->limit($p->firstRow,$p->listRows)->select();
                    $page=$p->show();
                </php>
                <php>
                    function getpage($count,$pagesize=18) {
                    $p=new \Think\Page($count,$pagesize);
                    $p->setConfig('header','');
                    $p->setConfig('prev','上一页');
                    $p->setConfig('next','下一页');
                    $p->setConfig('last','末页');
                    $p->setConfig('first','首页');
                    $p->setConfig('theme','%FIRST%&nbsp;%UP_PAGE%&nbsp;%LINK_PAGE%&nbsp;%DOWN_PAGE%&nbsp;%END%&nbsp;%HEADER%');
                    $p->lastSuffix=false;
                    return $p;
                    }
                </php>
                <volist name="docs" id="vo">
                    <div>
                        <a href="javascript:void(0);" class="jsgzwz">{$vo.title}</a>
                        <a href="{:sp_get_image_preview_url($vo['download_url'])}" class="jsgzxz">下载</a>
                    </div>
                    <span></span>
                </volist>
                </div>
                <div class="pages">
                    {$page}
                </div>
        </div>
    </div>    
</div>


<tc_include file="Portal:footer" />




</body>
</html>
